﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Facebook.Web;

namespace WhsFacebook.Net.Web.Facebook
{
    public partial class Debug : CanvasFBMLBasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var sb = new StringBuilder();

            sb.AppendLine("----------------------------------------");
            sb.AppendLine("Params");
            sb.AppendLine("----------------------------------------");

            foreach (var k in this.Request.Params.AllKeys)
            {
                sb.Append(k);
                sb.Append(" = ");
                sb.AppendLine(this.Request.Params[k]);
            }

            sb.AppendLine("----------------------------------------");
            sb.AppendLine("Session");
            sb.AppendLine("----------------------------------------");

            sb.Append("Status: ");
            sb.AppendLine(this.Api.Status.ToString());

            this.content.InnerText = sb.ToString();
        }
    }
}